package C;

import java.util.Scanner;

public class C56 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        System.out.println(getResult(input));
    }

    public static String getResult(String input) {
        if (input.equals(",")) return "/";
        StringBuilder sb = new StringBuilder("/");

        for (int i = 0; i < input.length(); i++) {
            char c = input.charAt(i);
            if (c=='/') continue;
            if (c!=',') {
                sb.append(String.valueOf(c));
            } else {
                sb.append("/");
            }
        }
        return sb.toString();
    }
}
